<?php
/*
 * The Big Picture Gallery (BPG) is a free open-source web gallery CMS for images.
 * Copyright (C) 2011 Julien Pardo.
 *   
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Contact: J. Pardo <julien.pardo@gmail.com>
 */

define('_ROOT_',realpath(dirname(__FILE__)));
require_once(_ROOT_.'/lib/bootstrap/bootstrap.php');

include(_ROOT_.'/app/view/helper/linkTo.php');

/*** include the init.php file ***/
$registry = new Registry;

/*** load the router ***/
$registry->router = new Router($registry);

/*** load up the template ***/
$registry->template = new Template($registry);

/*** load the controller ***/
$registry->router->loader();

?>